package com.ac.scum.log.web.model.pack.service;

import com.ac.scum.log.bean.Package;
import com.ac.scum.log.web.model.pack.mapper.PackageMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@AllArgsConstructor
public class PackageService extends ServiceImpl<PackageMapper, Package> {
    private final PackageMapper packageMapper;

    public Boolean joinMenu(Long packageId, Long menuId) {
        packageMapper.joinMenu(packageId, menuId);
        return Boolean.TRUE;
    }

    public Boolean quitMenu(Long packageId, Long menuId) {
        packageMapper.quitMenu(packageId, menuId);
        return null;
    }
}
